home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / gsar110.zip / ARG_FUNC.H < prev    next >
C/C++ Source or Header  |  1996-08-08  |  928b  |  25 lines

  1. /* arg_func.h ************************************** updated: 931015.16:49 TT
  2.  *
  3.  * Description : Header file for arg_func.c
  4.  * Author      : Tormod Tjaberg
  5.  */
  6.  
  7.  
  8. /* variables and defines used by GetOpt
  9.  */
  10. extern int  OptInx;                 /* index into argv, skip argv[0]; filename */
  11. extern int  CurOpt;                 /* current option checked for validity */
  12. extern char *pOptArg;               /* argument associated with option */
  13.  
  14. #define  BAD_CHAR    (int) 1  /* option char not in option string */  
  15. #define  MISSING_OPT (int) 2  /* switch character '-' but no option */
  16. #define  MISSING_ARG (int) 3  /* option required argument but none found */
  17. #define  NON_OPT     (int) 4  /* non option found '|' not in option string */
  18.  
  19. /* function prototypes 
  20.  */
  21. int GetOpt( int argc, char **argv, char *pOptStr );
  22. int GetEnvArgs( int *argc, char ***argv, char *pEnvVar );
  23. void Abort( char *,... );
  24.  
  25.